<?php

namespace ctrl;

use model\attments;
use libs\view;

class attment extends base
{
	private static $M;
	public static function Init()
	{
		parent::init();
		self::$M = new attments;
	}
	public static function index()
	{
		if (isset($_GET['list_json'])) {
			jsonList(self::$M->jsonPageSelect());
		} else {
			view::display();
		}
	}
}
